package nautilus.lab.activity;

import nautilus.lab.R;
import nautilus.lab.renderer.WaveView;
import android.app.Activity;
import android.os.Bundle;

public class WaveViewerActivity extends Activity 
{
	private WaveView waveView = null;
	
	@Override
	public void onCreate(Bundle savedState)
	{
		super.onCreate(savedState);
		setContentView(R.layout.waveview);
		
		waveView = (WaveView)findViewById(R.id.wv1);
	}
	
	@Override
	protected void onPause(){
		if(waveView != null)
			waveView.surfaceDestroyed(waveView.getHolder());
		super.onPause();
	}
	
	@Override
	protected void onResume(){
		if(waveView != null)
			waveView.surfaceRestart();
		super.onResume();
	}
}
